
#include "races.h"

Races::Races()
{

}

int		Races::getRacesSize()
{
  return(RACE_SIZE);
}

QString		Races::getRaceName(int raceId)
{
  switch(raceId)
    {
    case RACE_ROBOTS:
      return(tr("Robots"));
    case RACE_SHELLS:
      return(tr("Shells"));
    case RACE_CYCLOPS:
      return(tr("Cyclops"));
    case RACE_GORILLAZ:
      return(tr("Space gorrillaz"));
    case RACE_WAKA:
      return(tr("Waka"));
    case RACE_NEPTUNIANS:
      return(tr("Neptunians"));
    case RACE_KOLPUWO:
      return(tr("Kolpuwo"));
    case RACE_PIRNUSH:
      return(tr("Pirnush"));
    case RACE_FLOWERS:
      return(tr("Flowers"));
    default:
      return(tr(""));
    }
}

QString		Races::getRaceDescription(int raceId)
{
  switch(raceId)
    {
    case RACE_ROBOTS:
      return(tr("Robots  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_SHELLS:
      return(tr("Shells  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_CYCLOPS:
      return(tr("Cyclops  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_GORILLAZ:
      return(tr("Space gorrillaz  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_WAKA:
      return(tr("Waka  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_NEPTUNIANS:
      return(tr("Neptunians  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_KOLPUWO:
      return(tr("Kolpuwo  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_PIRNUSH:
      return(tr("Pirnush  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    case RACE_FLOWERS:
      return(tr("Flowers  desc . .. ..... . .. . . .. . . . .. . .. . . .. . ..  .  .. . .  . . . . . . .. .. .. . "));
    default:
      return(tr(""));
    }
}

char		*Races::getEnemyColorStyle(int enemyPos)
{
  switch(enemyPos)
    {
    case 0:
      return("font : 14px; color : rgb(100, 149, 237);"); // blue
    case 1:
      return("font : 14px; color : rgb(255, 165, 0);"); // orange
    case 2:
      return("font : 14px; color : rgb(139, 69, 19);"); // brown
    case 3:
      return("font : 14px; color : rgb(255, 0, 255);"); // magenta
    case 4:
      return("font : 14px; color : rgb(160, 32, 240);"); // purple
    default:
      return("");
    }
}
